﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMC.VISITOR.Application
{
    [SugarTable(null, "海康组织架构")]
    [BusinessVS]
    public class HKOrg : EntityBase
    {

        /// <summary>
        /// 组织唯一标识码
        /// </summary>
        [SugarColumn(ColumnDescription = "组织唯一标识码", IsNullable = true)]
        public string orgIndexCode { get; set; }
        /// <summary>
        /// 组织编号
        /// </summary>
        [SugarColumn(ColumnDescription = "组织编号", IsNullable = true)]
        public string orgNo { get; set; }

        /// <summary>
        /// 组织名称，如默认部门
        /// </summary>
        [SugarColumn(ColumnDescription = "组织名称", IsNullable = true)]
        public string orgName { get; set; }

        /// <summary>
        /// 组织目录，例如：默认部门/综合安防/开发小组
        /// </summary>
        [SugarColumn(ColumnDescription = "组织目录", IsNullable = true)]
        public string orgPath { get; set; }

        /// <summary>
        /// 父组织唯一标识码
        /// </summary>
        [SugarColumn(ColumnDescription = "父组织唯一标识码", IsNullable = true)]
        public string parentOrgIndexCode { get; set; }


        /// <summary>
        /// 父组织名称
        /// </summary>
        [SugarColumn(ColumnDescription = "父组织名称", IsNullable = true)]
        public string parentOrgName { get; set; }

        /// <summary>
        /// 更新时间 要求遵守ISO8601标准，如2018-07-26T21:30:08.000+08:00 表示北京时间2017年7月26日21时30分08秒
        /// </summary>
        //[SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        //public string updateTime { get; set; }

        #region 不需要的字段
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public override DateTime? CreateTime { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public override DateTime? UpdateTime { get; set; }
        #endregion
    }
}
